<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    .test {
        position: relative;
        left: 10px;
        top: 10px;
        width: 100px;
        height: 100px;
        padding: 40px;
        border: 2px solid green;
    }
    
    .content {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 100px;
        height: 100px;
        background: red;
    }
</style>

<body>
    <div class="test">
        <div class="content"></div>
    </div>


</body>

</html>